optee: Add optee_image_get_load_addr()
authorBryan O'Donoghue <[email protected]>
Tue, 13 Mar 2018 16:50:32 +0000 (16:50 +0000)
committerTom Rini <[email protected]>
Mon, 19 Mar 2018 20:14:24 +0000 (16:14 -0400)
commitdd5a12e28799366d3c64434f6b347550a4600231
tree6c16ea414dfcd8ef6d560835d2e990236ed38ca9
parentf79443684b60beb7cb281fc0becb6b69aa0a1a4a
optee: Add optee_image_get_load_addr()

This patch adds optee_image_get_load_addr() a helper function used to
calculate the load-address of an OPTEE image based on the lower
entry-point address given in the OPTEE header.

Signed-off-by: Bryan O'Donoghue <[email protected]>
Cc: Harinarayan Bhatta <[email protected]>
Cc: Andrew F. Davis <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Peng Fan <[email protected]>
Tested-by: Peng Fan <[email protected]>
include/tee/optee.h